var mongoose = require("./db.js");

var schema = mongoose.Schema; //模型生成器(表生成器)

//建立表 并且指定字段
var typeSchema = new schema({
    type:String,//描述
    img:String,//图片
});

module.exports = mongoose.model("typeinfo", typeSchema);